home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / unix / ch25 / 25fig08.wrl < prev    next >
Text File  |  1996-09-23  |  2KB  |  65 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Floor (two strips)
  8.         Transform {
  9.             translation 0.0 0.0 2.5
  10.             children DEF Floor Inline { url "dfloor.wrl" }
  11.         },
  12.         Transform { translation 0.0 0.0 -2.5 children USE Floor },
  13.     # Ceiling (reuse the floor)
  14.         Transform { translation 0.0 3.5  2.5 children USE Floor },
  15.         Transform { translation 0.0 3.5 -2.5 children USE Floor },
  16.     # Left wall with torch
  17.         Transform {
  18.             translation -5.0 0.0 0.0
  19.             children [
  20.                 Transform {
  21.                     translation 0.0 0.0 2.5
  22.                     children DEF Wall Inline { url "dwall.wrl" }
  23.                 },
  24.                 Transform { translation 0.0 0.0 -2.5 children USE Wall },
  25.                 Transform {
  26.                     translation 0.0 2.25 0.0
  27.                     rotation 0.0 1.0 0.0 1.57
  28.                     children [
  29.                         PointLight {
  30.                             location 0.0 0.25 0.2
  31.                             color 1.0 0.4 0.2
  32.                             intensity 0.8
  33.                             attenuation 0.0 0.6 0.0
  34.                             radius 10.0
  35.                         },
  36.                         DEF Torch Inline { url "torches.wrl" }
  37.                     ]
  38.                 }
  39.             ]
  40.         },
  41.     # Right wall with torch
  42.         Transform {
  43.             translation 5.0 0.0 0.0
  44.             children [
  45.                 Transform { translation 0.0 0.0  2.5 children USE Wall },
  46.                 Transform { translation 0.0 0.0 -2.5 children USE Wall },
  47.                 Transform {
  48.                     translation 0.0 2.25 0.0
  49.                     rotation 0.0 1.0 0.0 -1.57
  50.                     children [
  51.                         PointLight {
  52.                             location 0.0 0.25 0.2
  53.                             color 1.0 0.4 0.2
  54.                             intensity 0.8
  55.                             attenuation 0.0 0.6 0.0
  56.                             radius 10.0
  57.                         },
  58.                         USE Torch
  59.                     ]
  60.                 }
  61.             ]
  62.         }
  63.     ]
  64. }
  65.